Category: Geeks r Us
I've got XAMPP installed on my laptop, but still can't view PHP files I've made. Does anyone know how to fix this or if there is a setting I need to change? If not, are there any other ways of seeing my PHP files?
When you say viewing, do you mean the code or the output that the code creates?
IF your looking to view your code which seems a bit strange since you wrote it, then something like notepad will do the trick; when you save, make sure that you slect all files in the save as type dropdown and that you enter file.php and not just file.
I've heard of wamp and lamp, but not xamp - I assume its the same as wamp. If this is true, you need to save your php files in the /www directory of apache (It would have asked you in the installer or if not, it will say in the documentation) and then to view them, you type in ie or run or what ever you use:
http://localhost/file.php
replacing file.php with the name of your script.
Hth.
I'm wanting to see the output of my code. I normally write it in notepad and save it with a php extension.